'use client'
import './style.css';
import React from 'react';
import {usePathname } from 'next/navigation'
import routeData from '../../lib/route';
const App: React.FC = () => {
let p = usePathname()
const backTitle = ()=>{
	
	let pm = routeData.find(e=>{
		return p==e.path
	})
	return pm?pm.label:''
}

  return <>
    <div className="headerbox">
        <div className="headerbox_1"> {backTitle()}</div>
        <div className="headerbox_2"></div>
        <div className="headerbox_3">
                <div className="headerbox_4">
              
                   
                    <img className="headerbox_3_1" src="http://static.zookingsoft.com/deal/front/avatar.png" />
                   
                </div>
                <div className="headerbox_5">
                    积分：100
                </div>
        </div>
    </div>
 </>
}


export default App;